package org.example.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;


//这个类被spring接管了
@Component
public class User {

    //相当于<property name="name" vaule="kuangshen" />
    @Value("小张")
    private String name;
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }
}
